package yk.user;

import java.sql.SQLException;

import yk.user.dao.UserDao;
import yk.user.domain.User;

public class testMain {
	public static void main(String[] args) throws ClassNotFoundException, SQLException {
		UserDao dao = new UserDao();
		
		User user = new User();
		user.setId("whiteship");
		user.setName("백기선");
		user.setPassword("married");
		
		dao.add(user);
		
		System.out.println(user.getId() + " 등록 성공");
	
		User user2= dao.get(user.getId());
		
		System.out.println(user2.getName());
	}
}
